export const searchForm = [
    {
        type: 'select',
        key: 'department',
        label: '学部',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        }
    },
    {
        type: 'select',
        key: 'schoolTermName',
        label: '学季',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        }
    }
];

// 页面id
export const pageId = {
    0: {
        id: '',
        title: '流量风控',
        selectID: 'selectUnit_11'
    },
};

// 纬度id由页面id 和 纬度key拼接成, 小驼峰
export const getDimensionId = (index, searchKey) => {
    if (searchKey && pageId[index].id) {
        const newSearchKey = searchKey.slice(0, 1).toUpperCase() + searchKey.slice(1);

        return pageId[index].id + newSearchKey;
    }

    return '';
};

export const META = {
    PART_THREE_CARD_ONE: 'RiskControlSixPart_partOne_card_1',
    PART_THREE_COMPOSITE_ONE: 'RiskControlSixPart_partOne_composite_1',
    PART_THREE_TEXT_ONE: 'RiskControlSixPart_partOne_text_1'
};

